<template>
  <div class="container">
    <my-head></my-head>
    <img class="head-img" src="../assets/img/b1.jpg" alt="">
    <nav class="dhdt">
      <p :class="[dnumber==index ?'active':'']"   v-for="(item,index) in navfont" :key="index" @click="xufl(index)"><span>{{item.font}}</span></p>
    </nav>
    <ul class="con-nr">
      <li class="jzx1 animate__animated animate__fadeInUp"   v-show="dnumber==0"    >
        <ul>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
        </ul>
      </li>
      <li class="jzx1 animate__animated animate__fadeInUp"   v-show="dnumber==1"    >
        <ul>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
        </ul>
      </li>
      <li class="jzx1 animate__animated animate__fadeInUp"   v-show="dnumber==2"    >
        <ul>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
        </ul>
      </li>
      <li class="jzx1 animate__animated animate__fadeInUp"   v-show="dnumber==3"    >
        <ul>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
        </ul>
      </li>
      <li class="jzx1 animate__animated animate__fadeInUp"   v-show="dnumber==4"    >
        <ul>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
          <li>
            <img src="../assets/img/1-21011211501JB.jpg" alt="">
            <p>三个集装箱组合设计的小型移动酒店！</p>
          </li>
        </ul>
      </li>

    </ul>
    <my-foot></my-foot>
  </div>
</template>

<script>
export default {
  data(){
    return{
      move:0,
      dnumber:0,
      navfont:[
        {font:"集装箱名宿"},
        {font:"集装箱别墅"},
        {font:"集装箱商街"},
        {font:"集装箱公园"},
        {font:"集装箱办公"},

      ],
      navfont2:[
        {font:"时尚、优雅、健康的智能生态旅居新方式"},
        {font:"科技引领+服务创新"},
        {font:"励志打造成世界一流的集装箱房企业"},
        {font:"为荣誉而战"},

      ],
    }
  },
  methods: {
    xufl(e) {
      this.dnumber = e
    },

  }
}
</script>

<style scoped lang="less">

.head-img{
  width: 100%;
  height: auto;
}
.dhdt{
  margin:  0 auto;
  display: flex;
  justify-content: center;align-items: center;
  height: 88px;
  width: 1200px;
  overflow: hidden;

  p{
    margin: 0 50px;
    font-size: 16px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #FFFFFF;
  }
  .active{
    transition:all 0.3s ease-in;
    border-bottom: 2px solid crimson;
  }
  P:hover{
    transition:all 0.3s ease-in;
    border-bottom: 2px solid crimson;
  }
}
.con-nr{
  background: #F4F4F8;
  overflow: hidden;
  width: 100%;
  ul{
    background: #F4F4F8;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    li{
      background: #fff;
      border: 1px solid #DCDCEA;
      width: 29.33%;
      padding: 20px;
      margin:1% 2%;
      box-sizing: border-box;
      img{
        width: 100%;
      }
      p{
        font-size: 18px;
        color: #333333;
        text-align: center;
       margin-top: 20px;
      }
      p:hover{
        color: #3a8ee6;
      }
    }
  }
}
</style>
